#ifndef _DYEFIELDRENDER_H
#define _DYEFIELDRENDER_H
#include "Ogre.h"
#include "FlowSimHeaders.h"
#include "DyeField3.h"
namespace FlowSim
{
class DyeFieldRender
{
public:
  DyeFieldRender(Ogre::SceneManager* scnMgr);
  ~DyeFieldRender();

  void setInput(DyeField3* vf);
  void refresh(DyeField3* df); //refresh redner with a df.
  void update();

protected:
  Ogre::SceneManager* _scnMgr;
  DyeField3* _df;
  Ogre::SceneNode* _dfNode;
  int _dij;
  Ogre::TexturePtr _texture;
  void setupRender();
};
}

#endif
